package wsz;

import org.apache.kafka.common.serialization.Serializer;

import java.util.Map;

/**
 * @author wsz
 * @date 2022/3/16 15:45
 **/
public class MySerializer implements Serializer<User> {

    @Override
    public void configure(Map map, boolean b) {

    }

    /**
     * 将数据转为字节数组
     * @param s
     * @param user
     * @return
     */
    @Override
    public byte[] serialize(String s, User user) {
        return new byte[0];
    }

    @Override
    public void close() {

    }
}
